package psn.kiko;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan(basePackages={"psn.kiko.mapper"}) //Mapper接口扫描包
@EnableAspectJAutoProxy //开启注解式切面自动代理
@EnableTransactionManagement //开启注解式事务管理
@EnableConfigurationProperties //开启注解式配置属性
@EnableCaching//开启注解式缓存
//@EnableScheduling//开启注解式定时任务
@Slf4j
public class AuthApplication{
	public static void main(String[] args){
		SpringApplication.run(AuthApplication.class,args);
		log.debug("{}服务已启动...",AuthApplication.class.getSimpleName());
	}
}
